{extend name="base" /}
{block name="css"}
{css href="__CSS__/team.css" /}
{/block}
{block name="body"}
<!-- 主要内容 开始 -->
<div class="weui-tab__bd-item">
    <header class="weui-navBar weui-navBar-fixed">
        <a href="javascript:history.go(-1);" class="weui-navBar-item">
            <i class="icon iconfont icon-fanhui f-white"></i>
        </a>
        <div class="weui-center">
            <span class="weui-center-title f-white">我的社区</span>
        </div>
        <a href="javascript:;" class="weui-navBar-item">
        </a>
    </header>
    <div class="weui-grids">
        <div class="weui-grid">
            <p>一级总数(单)</p>
            <h2>{$data.one|count}</h2>
        </div>
        <div class="weui-grid">
            <p>二级总数(单)</p>
            <h2>{$data.two|count}</h2>
        </div>
    </div>
    <div class="weui-tab">
      <div class="weui-navbar">
        <a class="weui-navbar__item weui-bar__item--on" href="#tab1">
          一级社区
        </a>
        <a class="weui-navbar__item" href="#tab2">
          二级社区
        </a>
      </div>
      <div class="weui-tab__bd">
        <div id="tab1" class="weui-tab__bd-item weui-tab__bd-item--active">
            {volist name="data.one" id="v" empty="$empty"}
            <a class="weui-cell weui-cell_access" href="javascript:;">
                <div class="weui-ad">
                    <img src="__IMG__/head.jpg">
                </div>
                <div class="weui-cell__bd">
                  <p>{$v.name}{if $v.is_active}<span class="weui_cell_title f-green">已激活{else}<span class="weui_cell_title f-red">未激活{/if}</span></p>
                </div>
                <div class="weui-cell__ft">{$v.create_time|date="Y/m/d"}</div>
            </a>
            {/volist}
        </div>
        <div id="tab2" class="weui-tab__bd-item">
            {volist name="data.two" id="v" empty="$empty"}
            <a class="weui-cell weui-cell_access" href="javascript:;">
                <div class="weui-ad">
                    <img src="__IMG__/head.jpg">
                </div>
                <div class="weui-cell__bd">
                  <p>{$v.name}{if $v.is_active}<span class="weui_cell_title f-green">已激活{else}<span class="weui_cell_title f-red">未激活{/if}</span></p>
                </div>
                <div class="weui-cell__ft">{$v.create_time|date="Y/m/d"}</div>
            </a>
            {/volist}
        </div>
      </div>
    </div>
    <div class="divFooter"></div>
</div>
<!-- 主要内容 结束 -->
{/block}
{block name="js"}
<script type="text/javascript">
  $(function () {
    
  });
</script>
{/block}